//
//  HomeScreenVC.m
//  TopGirls
//
//  Created by Khang on 9/30/13.
//
//

#import "HomeScreenVC.h"

#import "HomeScreenItem.h"
#import "HomeScreenItemCell.h"

@interface HomeScreenVC ()

@end

@implementation HomeScreenVC

- (id)init {
    if (self = [super init]) {
        self.title = STRING(@"home screen title");
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor = COLOR(50, 50, 50);
    
    [self.items addObjectsFromArray:[NSArray arrayWithObjects:
                                     [HomeScreenItem itemWithSubCellInCell:1 withIcons:@[COLOR(255, 0, 0)]],
                                     [HomeScreenItem itemWithSubCellInCell:2 withIcons:@[COLOR(255, 255, 0), COLOR(0, 0, 255)]],
                                     [HomeScreenItem itemWithSubCellInCell:1 withIcons:@[COLOR(255, 35, 65)]],
                                     [HomeScreenItem itemWithSubCellInCell:2 withIcons:@[COLOR(26, 97, 10), COLOR(234, 76, 9)]], nil]];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
}

- (void)dealloc {
    
}

- (Class)cellClassForObject:(id)object ofTableView:(UITableView *)tableview {
    if ([object isKindOfClass:[HomeScreenItem class]]) {
        return [HomeScreenItemCell class];
    } else {
        return [super cellClassForObject:object ofTableView:tableview];
    }
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
}

@end
